package com.ruibang.glass.purchase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 合同关联商品信息表
 * </p>
 *
 * @author mameng
 * @since 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "合同关联商品信息表")
@TableName(value = "g_purchase_contract_products")
public class PurchaseContractProducts extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品代码")
    private String productCode;

    @ApiModelProperty(value = "商品Id")
    private String productId;

    @ApiModelProperty(value = "合同Id")
    private String contractId;

    @ApiModelProperty(value = "规格型号")
    private String specificationModel;

    @ApiModelProperty(value = "数量")
    private Double quantity;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "含税单价")
    private BigDecimal taxInclusiveUnitPrice;

    @ApiModelProperty(value = "含税总价")
    private BigDecimal taxInclusiveTotalPrice;

    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "税额")
    private BigDecimal taxAmount;

    @ApiModelProperty(value = "不含税单价")
    private BigDecimal taxExclusiveUnitPrice;

    @ApiModelProperty(value = "不含税总价")
    private BigDecimal taxExclusiveTotalPrice;

    @ApiModelProperty(value = "供货期")
    private String supplyPeriod;

    @ApiModelProperty(value = "")
    @TableField(exist = false)
    private String index;
}
